package com.example.hotel.pojo;

import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.sql.Date;

@Data
public class Comment {
    private Integer id;
    @NotEmpty(message = "userid不能为空")
    private Integer userid;
    @NotEmpty(message = "roomid不能为空")
    private Integer roomid;
    @NotEmpty(message = "rate不能为空")
    private Integer rate;

    private Date publishtime;
    private String text;
}
